package clock._11.borovskih;

import javax.swing.*;
import java.awt.*;

public class Clock {

    public static void main(String[] args) {
        OurExampleFrame f1 = new OurExampleFrame();
        BorderLayout l = new BorderLayout();
        f1.setLayout(l);

        JPanel p = new JPanel();
        f1.add(p, BorderLayout.NORTH);
        p.setLayout(new GridLayout(1, 8));
        JButton b1 = new JButton("Первая кнопка");
        JButton b2 = new JButton("Вторая кнопка");
        b1.setHorizontalAlignment(SwingConstants.CENTER);
        b2.setHorizontalAlignment(SwingConstants.CENTER);
        p.add(b1, "0 4");
        p.add(b2, "0 5");

        final DrawClock cl = new DrawClock();
        f1.add(cl, BorderLayout.CENTER);

        f1.setVisible(true);
    }


}
